package com.kg.module.jtnc.nzxx.excels;

import java.util.LinkedHashMap;

/**
 * Excel使用常量 - 农资信息表
 *
 * @author xxx
 * @date 2024-11-02
 */
public class KrNzxxExcelConstant {
    /**
     * 导出所需的字段信息
     */
    public static LinkedHashMap<String, String> EXPORT_EXCEL_COLUMN = new LinkedHashMap<>();
    /**
     * 导入所需字段信息
     */
    public static LinkedHashMap<String, String> IMPORT_EXCEL_COLUMN = new LinkedHashMap<>();
    /**
     * 导入必填字段信息
     */
    public static LinkedHashMap<String, String> IMPORT_REQUIRED_COLUMN = new LinkedHashMap<>();

    static {
        // 初始化导出字段
        EXPORT_EXCEL_COLUMN.put("nzbh", "农资编号");
        EXPORT_EXCEL_COLUMN.put("nzmc", "农资名称");
        EXPORT_EXCEL_COLUMN.put("gg", "规格");
        EXPORT_EXCEL_COLUMN.put("sccj", "生产厂家");
        EXPORT_EXCEL_COLUMN.put("dj", "单价");
        EXPORT_EXCEL_COLUMN.put("createTime", "添加时间");
        EXPORT_EXCEL_COLUMN.put("updateTime", "修改时间");
        // 初始化导入字段
        IMPORT_EXCEL_COLUMN.put("农资编号", "nzbh");
        IMPORT_EXCEL_COLUMN.put("农资名称", "nzmc");
        IMPORT_EXCEL_COLUMN.put("规格", "gg");
        IMPORT_EXCEL_COLUMN.put("生产厂家", "sccj");
        IMPORT_EXCEL_COLUMN.put("单价", "dj");
        // 初始化导入必填字段
    }

}